import bb.cascades 1.2
import "../lib"
import bb.WebImageView 1.4

Padding {
    property alias title: m_title.text
    property alias thumbnail_1: m_thumbnail_1.url
    property alias thumbnail_2: m_thumbnail_2.url
    property alias thumbnail_3: m_thumbnail_3.url
    property int screenWidth
    
    layout: StackLayout {
        orientation: LayoutOrientation.TopToBottom
    }
    
    Container {
        bottomPadding: 5
        Label {
            id: m_title
            textStyle.base: com.titleStyle
        }
    }
    
    Container {
        layout: StackLayout {
            orientation: LayoutOrientation.LeftToRight
        }
        
        WebImageView {
            id: m_thumbnail_1
            scalingMethod: ScalingMethod.AspectFill
            preferredWidth: 164*1.5
            preferredHeight: 113*1.5
        }
        
        WebImageView {
            id: m_thumbnail_2
            scalingMethod: ScalingMethod.AspectFill
            preferredWidth: 164*1.5
            preferredHeight: 113*1.5
        }
        
        WebImageView {
            id: m_thumbnail_3
            scalingMethod: ScalingMethod.AspectFill
            preferredWidth: 164*1.5
            preferredHeight: 113*1.5
        }
    }
    
    Common {
        id: com
    }
    
}
